package com.doit.shark.dsp.utils

import com.doit.shark.dsp.beans.{DspLogBean, DspLogBeanStr}

/**
  * Created by hunter.coder 涛哥  
  * 2019/4/8 18:23
  * 交流qq:657270652
  * Version: 1.0
  * 更多学习资料：https://blog.csdn.net/coderblack/
  * Description:
  **/
object GenLogBean {

  def arr2LogBean(arr: Array[String]): DspLogBean = {

    DspLogBean(
      arr(0),
      arr(1).toInt,
      arr(2).toInt,
      arr(3).toInt,
      arr(4).toInt,
      arr(5),
      arr(6),
      arr(7).toInt,
      arr(8).toInt,
      arr(9).toDouble,
      arr(10).toDouble,
      arr(11),
      arr(12),
      arr(13),
      arr(14),
      arr(15),
      arr(16),
      arr(17).toInt,
      arr(18),
      arr(19),
      arr(20).toInt,
      arr(21).toInt,
      arr(22),
      arr(23),
      arr(24),
      arr(25),
      arr(26).toInt,
      arr(27),
      arr(28).toInt,
      arr(29),
      arr(30).toInt,
      arr(31).toInt,
      arr(32).toInt,
      arr(33),
      arr(34).toInt,
      arr(35).toInt,
      arr(36).toInt,
      arr(37),
      arr(38).toInt,
      arr(39).toInt,
      arr(40).toDouble,
      arr(41).toDouble,
      arr(42).toInt,
      arr(43),
      arr(44).toDouble,
      arr(45).toDouble,
      arr(46),
      arr(47),
      arr(48),
      arr(49),
      arr(50),
      arr(51),
      arr(52),
      arr(53),
      arr(54),
      arr(55),
      arr(56),
      arr(57).toInt,
      arr(58).toDouble,
      arr(59).toInt,
      arr(60).toInt,
      arr(61),
      arr(62),
      arr(63),
      arr(64),
      arr(65),
      arr(66),
      arr(67),
      arr(68),
      arr(69),
      arr(70),
      arr(71),
      arr(72),
      arr(73).toInt,
      arr(74).toDouble,
      arr(75).toDouble,
      arr(76).toDouble,
      arr(77).toDouble,
      arr(78).toDouble,
      arr(79),
      arr(80),
      arr(81),
      arr(82),
      arr(83),
      arr(84).toInt,
      "",
      ""
    )
  }


  def arr2LogBeanStr(arr: Array[String]): DspLogBeanStr = {

    DspLogBeanStr(
      arr(0),
      arr(1),
      arr(2),
      arr(3),
      arr(4),
      arr(5),
      arr(6),
      arr(7),
      arr(8),
      arr(9),
      arr(10),
      arr(11),
      arr(12),
      arr(13),
      arr(14),
      arr(15),
      arr(16),
      arr(17),
      arr(18),
      arr(19),
      arr(20),
      arr(21),
      arr(22),
      arr(23),
      arr(24),
      arr(25),
      arr(26),
      arr(27),
      arr(28),
      arr(29),
      arr(30),
      arr(31),
      arr(32),
      arr(33),
      arr(34),
      arr(35),
      arr(36),
      arr(37),
      arr(38),
      arr(39),
      arr(40),
      arr(41),
      arr(42),
      arr(43),
      arr(44),
      arr(45),
      arr(46),
      arr(47),
      arr(48),
      arr(49),
      arr(50),
      arr(51),
      arr(52),
      arr(53),
      arr(54),
      arr(55),
      arr(56),
      arr(57),
      arr(58),
      arr(59),
      arr(60),
      arr(61),
      arr(62),
      arr(63),
      arr(64),
      arr(65),
      arr(66),
      arr(67),
      arr(68),
      arr(69),
      arr(70),
      arr(71),
      arr(72),
      arr(73),
      arr(74),
      arr(75),
      arr(76),
      arr(77),
      arr(78),
      arr(79),
      arr(80),
      arr(81),
      arr(82),
      arr(83),
      arr(84),
      "",
      ""
    )
  }

}
